home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-07 | 1.5 KB | 38 lines | [TEXT/ttxt] |
- ChangeTypeCreator.c
- Change the file type and creator of any file dropped onto
- this program. Prompts for the file type and creator, and
- changes all files dropped at the same time to the same type
- and creator.
-
- Written by Brian Bechtel, based on code by Juri Munkki
- Feel free to use the code in your programs.
-
- Modified by Pete R. Jemian, Late-Nite(tm) Software
- Option was added to convert TEXT files to the
- chosen system of EOL (end-of-line) characters. Note that EOLs
- on DOS files are <CR><LF> (VAX also uses this EOL format)
- on Mac files are <CR>
- on UNIX files are <LF>
-
- If you aren't bothered by this, that's just great. If you
- are, this little hack will surely help. Very useful for
- moving TEXT files between DOS, Mac, and UNIX machines
- by diskNet (copy file onto disk, remove disk, sneaker it
- to other machine, ...).
-
- BTW: Set the application's size to that of the largest file
- that you expect to convert EOLs. The EOLconvert code
- reads the entire file into memory at one time, then does
- the conversion as the file is re-written.
-
- WARNING:
- If you don't know what you are doing, things *could* get
- pretty fouled up. They might not. UNDO is not supported.
- See the source code to determine *exactly* what is done.
-
- The problem that *could* occur is that you mistakenly select
- a non-TEXT file along with other TEXT files and convert them
- all to type TEXT *and* convert the EOL characters to the
- selection of your choice. That's the danger. Don't do it.
- You are unprotected against goofball errors like this.
-